package main
import (
	"encoding/json"
	"fmt"
)

func main() {
	// json的key必须为string 所以map必须为map[string]T
	m := map[string] []string {
		"level": {"debug"},
		"message": {"File", "Stack"},
	}
	if data, err := json.Marshal(m); err == nil {
		fmt.Printf("%s\n", data)
	}
}